<?php
require_once('ri/converter/NumberConverter.php');

// set locale to german
setlocale(LC_ALL,'de_DE@euro','de_DE','de','ge','german');

$c= new NumberConverter();
$c->setErrorMessage('Unable to convert value "%s" to float');
try {
	$float= $c->getAsDatatype('asd');
}
catch (ConverterException $e) {
	echo($e); // output: Unable to convert value "asd" to float
}
echo("<br/>\n");
echo($c->getAsString(12345.67)); // output for german locale: 12.345,67
?>